<?php
class CompanyAction extends CommonAction{
	//首页
	public function index(){
		//$this->display();
	}

	//修改基本资料
	public function editbase(){
		$this->edit();
	}

	//修改企业简介
	public function editinfo(){
		$this->edit("id,name,info");
	}

	//修改联系方式
	public function editcontact(){
		$this->edit();
	}

	//修改企业LOGO
	public function editlogo(){
		$this->edit();
	}

	public function edit($field){
		C('SHOW_PAGE_TRACE',false);		//不显示调试信息
		$comid	= getComid();
		$model	= M("Company");
		$field	= $field?$field:"*";
		$company	= $model	->field($field)->find($comid);
		$this->assign('vo',$company);
		$this->display();
	}

}
?>